package com.two.service.tui.controller.Api;

import com.two.common.entity.Tuimoney;
import com.two.common.util.CommonResult;
import com.two.service.tui.service.TuiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/order/order/tui")
public class ApiOrderController {
    @Autowired
    private TuiService tuiService;
    @PostMapping("tuiMoney")
    public CommonResult tuiMoney(@RequestBody Tuimoney tuimoney){
       return tuiService.insert(tuimoney);
    }
}
